project(lserver)
set(project_name gameserver)

cmake_minimum_required(VERSION 3.10)
set (CMAKE_C_FLAGS_DEBUG "-fpermissive -fopenmp  -std=c++11 -g -fno-elide-constructors " )
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

INCLUDE_DIRECTORIES(
			/usr/include/python3.8/
			)
LINK_DIRECTORIES(
			/usr/lib/python3.8/
			/usr/local/lib/
			/usr/lib64/
			)
file(GLOB_RECURSE SOURCE_FILES src/*)
SET(EXECUTABLE_OUTPUT_PATH ../bin)
#message(${project_name} ${SOURCE_FILES})
add_executable(${project_name} ${SOURCE_FILES})
target_link_libraries(${project_name} pthread)
#target_link_libraries(${project_name} python2.7)
target_link_libraries(${project_name} python3.8)
target_link_libraries(${project_name} event)

